﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using IBatisNet.DataMapper;
using DevExpress.XtraTreeList;
using uIBTv.Model;
using uIBTv.Service;
using uIBTv.Controller;
using System.Data;


[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
// To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
// [System.Web.Script.Services.ScriptService]

public class Service : System.Web.Services.WebService
{
    SqlMapper sqlMapper;
    BoPhanCollection BoPhanCollection;
    BoPhanService BoPhanService;
    uIBTv.Controller.BoPhanController bophanController = new BoPhanController();
    uIBTv.Controller.UngVienController ungvienController = new UngVienController();
    public Service () {

        //Uncomment the following line if using designed components 
        //InitializeComponent(); 
    }

    [WebMethod]
    public string HelloWorld()
    {
        return "Hello World";
    }

    [WebMethod]
    public DataSet GetBoPhan()
    {
        return bophanController.GetBoPhan();
    }
    [WebMethod]
    public DataTable GetBophanVitri()
    {
        return bophanController.GetBophanVitri();
    }

    [WebMethod]
    public DataTable GetUngVienId(Guid id)
    {
        return ungvienController.GetUngVienId(id);
    }
}